package com.pw.lit.service.impl;

import com.pw.lit.bean.Follow;
import com.pw.lit.bean.FollowExample;
import com.pw.lit.mapper.FollowMapper;
import com.pw.lit.service.FollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("followService")
public class FollowServiceImpl implements FollowService {

    @Autowired
    private FollowMapper followMapper;


    @Override
    public int countByExample(FollowExample example) {
        return followMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(FollowExample example) {
        return followMapper.deleteByExample(example);
    }

    @Override
    public int insert(Follow record) {
        return followMapper.insert(record);
    }

    @Override
    public int insertSelective(Follow record) {
        return followMapper.insertSelective(record);
    }

    @Override
    public List<Follow> selectByExample(FollowExample example) {
        return followMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(Follow record, FollowExample example) {
        return followMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Follow record, FollowExample example) {
        return followMapper.updateByExample(record,example);
    }
}